Skip to content

fix(execution): start every run of a launch or none after a restart - #820

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/shard-alone-restart
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/shard-alone-restart

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #768

What

  • One decision per launch: a file under a fresh token, preparing before any run's mark names it, committed once every record is saved.
  • restore starts every run of a launch or none. A preparing launch's names are free again; a committed one's are not.
  • A missing or foreign decision, or a malformed mark: no run starts, no record is erased.
  • Takeover and rollback keep a mark beside every record; a rollback left incomplete keeps the decision. An older .reserved mark beside a record behaves as before.

Touches

app/nullius/execution.py: start_all, restore, _orphan.

Verified

  • Killed before the decision: nothing resumes, both names relaunch. After: both resume.
  • SIGKILL tests fail on main or earlier rounds.
  • Backend and route suites.

Risk

Agents

Claude Code, Opus 5.5
Codex, GPT-6.2-Astra (review)

@harenome
harenome marked this pull request as ready for review December 3, 2026 22:51
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit 9223309 into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/shard-alone-restart branch December 3, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A crash between a multi-machine launch's first records runs one shard alone after a restart

1 participant